package Demo2.entity;

import java.io.Serializable;

//年级
public class Grade implements Serializable {
    private long id;
    private String gname;

    public Grade() {
    }

    public Grade(long id, String gname) {
        this.id = id;
        this.gname = gname;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    @Override
    public String toString() {
        return "grade{" +
                "id=" + id +
                ", gname='" + gname + '\'' +
                '}';
    }
}
